home *** CD-ROM | disk | FTP | other *** search
- // MiscSavePanel.h -- A save panel that allows appending.
- //
- // Written by Peter Langston and Copyright (c) 1994 by Peter S. Langston.
- // Version 1.1. All rights reserved.
- // Thanks to David Griffiths <dave@prim.demon.co.uk> for the
- // pointer to the _validateNames:checkBrowser: method.
- //
- // This notice may not be removed from this source code.
-
- #import <appkit/SavePanel.h>
-
- @interface MiscSavePanel:SavePanel
- {
- BOOL appendOK; // is append allowed?
- BOOL appMode; // was append chosen?
- }
-
- + alloc; // returns nil
-
- + allocFromZone:(NXZone *)zone; // returns nil
-
- + newContent:(const NXRect *)contentRect
- style:(int)aStyle
- backing:(int)bufferingType
- buttonMask:(int)mask
- defer:(BOOL)flag;
-
- - (BOOL)_validateNames:(char *)name checkBrowser:(BOOL)check;
- // overriding internal method in SavePanel
-
- - allowAppend:(BOOL)ok; // ok=YES allows the append choice
- // ok=NO makes MiscSavePanel act like SavePanel
-
- - (BOOL)appending; // is an append required?
- // YES => append chosen, NO => replace
-
- - free; // returns self
-
- - init; // returns nil
-
- @end
-